#!/bin/bash

if [ $1 == "clean" ]; then
	echo "Cleaning build/ dir"
	rm -rf build/
fi

if [ $1 == "firefox-os" ]; then
	echo "Building for Firefox OS"
	cp -rp firefox-os build/
	cp -rp app build/firefox-os/app
	cd build/firefox-os
	zip -r -ll ../guia-minecraft-firefox-os.zip *
	cd ..
fi

if [ $1 == "ubuntu" ]; then
	echo "Building for Ubuntu"
	cp -rp ubuntu build/
	cp -rp app build/ubuntu/app
	cd build
	click build ubuntu
fi
